Remove superfluous g_file_test()
authorTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 4 Oct 2013 11:47:03 +0000 (21:47 +1000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2013 01:45:59 +0000 (21:45 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=168530
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
gtk/gtkaccelmap.c

index 97e70af5b7e9ebf820c36e6d4d20e178eaabfd9e..f6baf0850580feb28b2688a982003cf184f4ced4 100644 (file)
@@ -684,9 +684,6 @@ gtk_accel_map_load (const gchar *file_name)
 
   g_return_if_fail (file_name != NULL);
 
-  if (!g_file_test (file_name, G_FILE_TEST_IS_REGULAR))
-    return;
-
   fd = g_open (file_name, O_RDONLY, 0);
   if (fd < 0)
     return;